<template>
<!-- 顶部通栏 -->
<AppTopnav />
<!-- 吸顶头部 -->
<AppHeaderSticky />
<!-- 头部组件 -->
<AppHeader />
<!-- 内容容器-二级路由 -->
<div class="app-body">
  <RouterView />
</div>
<!-- 底部组件 -->
<AppFooter />
<!-- 返回页面顶部组件 -->
<AppBacktop />
</template>
<script>
import AppTopnav from '@/components/app-topnav.vue'
import AppHeader from '@/components/app-header.vue'
import AppFooter from '@/components/app-footer.vue'
import AppBacktop from '@/components/app-backtop.vue'
import AppHeaderSticky from '@/components/app-header-sticky.vue'
import { useStore } from 'vuex'
export default {
  name: 'Layout',
  components: { AppTopnav, AppHeader, AppFooter, AppHeaderSticky, AppBacktop },
  // 获取分类数据
  setup () {
    const store = useStore()
    store.dispatch('category/getList')
  }
}
</script>
<style lang="less" scoped>
.app-body{
    min-height: 600px;
}
</style>
